The Week View component > FWeekView.getValue() |
FWeekView.getValue()
Availability
Flash Player 6.
Usage
myWeekView_wkv.getValue ()
Parameters
none
Returns
Returns a Date object representing the date currently selected within the component.
Description
Returns a Date object representing the date currently selected within the component.
Example
The week_simple_example.fla example file contains an example of using this method.
The following code set the selected date to the current date, which then triggers the change handler to be called.
function onWeekChange(view)
{
trace( "Selected Date: " + view.getValue() ); //will trace today's date
}
var dateObj = new Date( ); //today's date
myWeekView_wkv.setChangeHandler( "onWeekChange" );
myWeekView_wkv.setSelectedDate( dateObj );
See also